#ifndef __MYSERIAL__H
#define __MYSERIAL__H

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>


#define SERIAL_PORT "/dev/ttyS5"
#define SERIAL_BAUD 115200

int serialOpen (const char *device, const int baud);
void serialPuts (const int fd, const unsigned char *s,int len);
int serialDataAvail (const int fd);
int serialGets (const int fd, unsigned char *buffer);

#endif